import request from '@/utils/request'

// 登录 / 注册
export const login = data => {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}

// 修改信息
export const update = data => {
  return request({
    url: '/user/update',
    method: 'put',
    data
  })
}

// 获取用户列表
export const getUser = params => {
  return request({
    url: '/user/getUser',
    method: 'get',
    params
  })
}
